package com.example.serviceweb.controller;

import com.example.serviceweb.service.TestService;
import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Description: .
 *
 * @author Wengy
 * @since JDK 1.8
 * @since 1.0.0
 */
@RestController
public class TestController {
    
    @Autowired
    TestService testService;
    
    @RequestMapping("/test")
    public void test(HttpServletRequest request) throws InterruptedException {

        testService.test();
        
    }
    
    @RequestMapping("/test2")
    public void test2(HttpServletRequest request) throws InterruptedException {
        
        testService.test();
        
    }
    
}
